package com.eventbus.demo.springevent;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

@Getter
@Setter
@ToString
public class NoticeEvent extends ApplicationEvent {
    private String title;
    private String content;

    public NoticeEvent(Object source) {
        super(source);
    }
    public NoticeEvent(String title,String content){
        super(title);
        this.title = title;
        this.content = content;
    }
}
